home *** CD-ROM | disk | FTP | other *** search
-
- class CFinderIconPicture
- {
- public: CFinderIconPicture ( short vRefNum, long dirID );
- ~CFinderIconPicture ( );
-
- void AcceptPict ( GWorldPtr pic );
-
- protected:
-
- void AddCustomIconResource ( short refNum, OSType resType, GWorldPtr pic, Rect& r, unsigned short depth );
- void CreateIconResourcesToFile ( GWorldPtr pic, short refNum, Rect& r );
- void CreateTiledFile ( GWorldPtr pic, unsigned short x, unsigned short y );
-
- void DeleteExistingIcons ( );
-
- Handle MakeIcon(GWorldPtr srcGWorld, Rect* srcRect, short dstDepth, short iconSize);
- Handle MakeICN_pound(GWorldPtr gwp, GWorldPtr maskP, Rect *srcRect, short iconDimension);
-
- OSErr SetUpPixMap( short depth, /* Desired number of bits/pixel in off-screen */
- Rect *bounds, /* Bounding rectangle of off-screen */
- CTabHandle colors, /* Color table to assign to off-screen */
- PixMapHandle aPixMap /* Handle to the PixMap being initialized */ );
-
- void TearDownPixMap();
-
-
- short mVRefNum;
- long mDirID;
-
- PixMapHandle mPix;
- };